package cn.elves.model.activity.service.stateflow.updater;

import cn.elves.model.activity.entity.constant.ActivityStateConstants;
import cn.elves.model.activity.service.stateflow.AbstractStateUpdater;
import org.springframework.stereotype.Component;


@Component
public class ArraignmentStateUpdater extends AbstractStateUpdater {


    @Override
    public Boolean doCheckPass(Long activityId, Integer curState) {
        return updateState(activityId, curState, ActivityStateConstants.PASS);
    }

    @Override
    public Boolean doCheckRefuse(Long activityId, Integer curState) {
        return updateState(activityId, curState,ActivityStateConstants.REFUSE);
    }

    @Override
    public Boolean doCheckRevoke(Long activityId, Integer curState) {
        return updateState(activityId, curState,ActivityStateConstants.EDIT);
    }


}
